<?php
class DyModel extends Action{
	//test
	//
	//############test
	public function getmobywhere($where){
		$info=collectinfo(__METHOD__,'$where',array($where));
		
		$dy=M('dy');

		$dyo=$dy->where('1=1'.$where)->find();

		return createarrok('ok',$dyo,'',$info);
	}

	public function add($dt){
		$info=collectinfo(__METHOD__,'$dt',array($dt));
		
		$dy=M('dy');

		$dyo=$dy->data($dt)->add();

		return createarrok('ok',$data,'',$info);
	}
	

} 
?>